package com.molichuxing.services.infrastructure.service;

import java.util.List;
import java.util.Map;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.StockCreateDto;
import com.molichuxing.services.infrastructure.dto.request.modify.StockModifyDto;
import com.molichuxing.services.infrastructure.dto.response.StockDto;

/**
 * 
 * @author liyg
 * 仓库服务
 * 2019-08-20
 *
 */
public interface StockService extends RootService {

	/**
	 * 获取仓库详情
	 * 
	 * @param id
	 * @return
	 */
	StockDto getStock(Integer id);
	
	/**
	 * 获取仓库详情
	 * 
	 * @param ids
	 * @return
	 */
	Map<Integer,StockDto> getStocks(List<Integer> ids);
	
	/**
	 * 保存仓库信息
	 * 
	 * @param createDto
	 * @return
	 */
	Integer create(StockCreateDto createDto);
	
	/**
	 * 修改仓库信息
	 * 
	 * @param modifyDto
	 * @return
	 */
	Boolean modify(StockModifyDto modifyDto);
}
